package com.cskaoyan.mall.service;

import com.cskaoyan.mall.model.comment.CommentVO;
import com.cskaoyan.mall.model.orders.*;

import java.util.List;

/**
 * @author: jyf2000jyf
 */
public interface OrderService {
    OrdersByPageVO orderByPage(OrdersByPageBO ordersByPageBO);

    boolean deleteOrder(int id);

    OrderByIdVO getOrderById(int orderId);

    boolean changeOrder(changeOrderBO changeOrderBO);

    List<OrderByStateVO> getOrderByState(Integer state, String username);

    boolean pay(Integer id);

    boolean confirmReceive(Integer id);

    boolean settleAccounts(CartList cartList);

    boolean addOrder(AddOrderBO addOrderBO);

    boolean sendComment(CommentVO commentVO);
}
